use "C:\Users\jrichman\Box Sync\Roll Rates\StateLegislativeSimulations\LegislatureSims\shor mccarty 1993-2014 state individual legislator scores public June 2015 (1).dta" 

tabstat np_score if senate1998 == 1, statistics( p50 ) by(st)
tabstat np_score if house1998 == 1, statistics( p50 ) by(st)

tabstat np_score if senate2000 == 1, statistics( p50 ) by(st)
tabstat np_score if house2000 == 1, statistics( p50 ) by(st)

tabstat np_score if senate1998 == 1 & party == "D", statistics( p50 ) by(st)
tabstat np_score if senate1998 == 1 & party == "R", statistics( p50 ) by(st)

tabstat np_score if house1998 == 1 & party == "D", statistics( p50 ) by(st)
tabstat np_score if house1998 == 1 & party == "R", statistics( p50 ) by(st)

tabstat np_score if senate2000 == 1 & party == "D", statistics( p50 ) by(st)
tabstat np_score if senate2000 == 1 & party == "R", statistics( p50 ) by(st)

tabstat np_score if house2000 == 1 & party == "D", statistics( p50 ) by(st)
tabstat np_score if house2000 == 1 & party == "R", statistics( p50 ) by(st)

table st if senate1998 == 1, contents(p60 np_score p67 np_score p40 np_score p33 np_score )
table st if house1998 == 1, contents(p60 np_score p67 np_score p40 np_score p33 np_score )

table st if senate2000 == 1, contents(p60 np_score p67 np_score p40 np_score p33 np_score )
table st if house2000 == 1, contents(p60 np_score p67 np_score p40 np_score p33 np_score )

tabstat np_score if senate2000 == 1 | house2000 == 1 & party == "D", statistics( p50 ) by(st)
tabstat np_score if senate2000 == 1 | house2000 == 1 & party == "R", statistics( p50 ) by(st)
